<?php
if (!defined('IS_ADMIN_FLAG')) {
  die('Illegal Access');
}

if($products_image_num > 0){
  for($i = 0;$i < $products_image_num; $i++){
		$products_image_small[$i] = DIR_WS_PRO_SMALL. $products_image . '_'.($i+1).'.jpg';
		$products_image_large[$i]  = DIR_WS_PRO_BIG. $products_image . '_'.($i+1).'.jpg';
    }
  if(strlen($products_other_image) > 0){
	  if(is_int(strrpos($products_image, ';'))){
		  $temp_product_imgs = split ( ';', $products_image );
		  $temp_product_imgsnum = count($temp_product_imgs );
		  
		  for($i = 0; $i < $temp_product_imgsnum; $i++){
			  if(strlen($temp_product_imgs[$i]) > 0){
				$products_image_small[] = DIR_WS_PRO_SMALL. $temp_product_imgs[$i] .'.jpg';
				$products_image_large[]  = DIR_WS_PRO_BIG. $temp_product_imgs[$i].'.jpg';
			  }
		  }
		  
	   }
	}
  
}
?>